﻿@using Super.Mvc
@using Zen.Barcode
@model Product
@{
    ViewBag.Title = "产品编辑";
}
@using (Html.AjaxBeginForm("edit", "stock"))
{
    <div class="pageFormContent" layouth="56">
        @Html.HiddenFor(a => a.ID)
        <input type="hidden" name="stockId" value="@ViewBag.StockId"/>
        <p><label>供应商:</label>
            @Html.DropDownList("Supplier_ID", (IEnumerable<SelectListItem>)ViewBag.Suppliers, "选择供应商")
        </p>
        <div class="divider">
        </div>
        @Html.DWZTextBoxFor(a => a.Title, "产品名称").Disable()
        <div class="divider">
        </div>
        @Html.DWZTextBoxFor(a => a.ProductCategory.Name, "产品分类").Disable()
        @Html.DWZTextBoxFor(a => a.Model, "产品型号").Disable()
        <div class="divider">
        </div>
        @Html.DWZTextBoxFor(a => a.CBPrice, "成本价").Required()
        @Html.DWZTextBoxFor(a => a.WYLPrice, "微盈利价").Required()
        @Html.DWZTextBoxFor(a => a.PFPrice, "批发价").Required()
        @Html.DWZTextBoxFor(a => a.LSPrice, "零售").Required()
        <div class="divider">
        </div>
        @Html.DWZTextBox("Count", "产品数量").Required().Digits()
        <div class="divider">
        </div>
        @Html.TextBoxFor(a => a.CreateTime, new { type = "hidden" })
    </div>
    @Html.DWZFormBar()
}
